﻿@model RRHH.Models.CONTRATO

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CONTRATO</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDCONTRATO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDCONTRATO)
            @Html.ValidationMessageFor(model => model.IDCONTRATO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FECHAINICIO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FECHAINICIO)
            @Html.ValidationMessageFor(model => model.FECHAINICIO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FECHAFIN)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FECHAFIN)
            @Html.ValidationMessageFor(model => model.FECHAFIN)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDTIPOEXTINCION)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDTIPOEXTINCION)
            @Html.ValidationMessageFor(model => model.IDTIPOEXTINCION)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CODIGOEMPLEADO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CODIGOEMPLEADO)
            @Html.ValidationMessageFor(model => model.CODIGOEMPLEADO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDPERSONAL)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDPERSONAL)
            @Html.ValidationMessageFor(model => model.IDPERSONAL)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SALARIORECIBO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SALARIORECIBO)
            @Html.ValidationMessageFor(model => model.SALARIORECIBO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDCARGO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDCARGO)
            @Html.ValidationMessageFor(model => model.IDCARGO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDESTADO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDESTADO)
            @Html.ValidationMessageFor(model => model.IDESTADO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FECHACREACION)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FECHACREACION)
            @Html.ValidationMessageFor(model => model.FECHACREACION)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VIGENTE)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VIGENTE)
            @Html.ValidationMessageFor(model => model.VIGENTE)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDTIPOCONTRATO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDTIPOCONTRATO)
            @Html.ValidationMessageFor(model => model.IDTIPOCONTRATO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FLAGCESADO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FLAGCESADO)
            @Html.ValidationMessageFor(model => model.FLAGCESADO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FECHAEXTINCION)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FECHAEXTINCION)
            @Html.ValidationMessageFor(model => model.FECHAEXTINCION)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ESTADO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ESTADO)
            @Html.ValidationMessageFor(model => model.ESTADO)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "ListadoContratos")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
